package com.zeen.wima.common;

import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;

public class LocalData {

	SharedPreferences data;
	Editor writer;

	public LocalData(Context context) {
		data = context
				.getSharedPreferences("perference", Activity.MODE_PRIVATE);
		writer = data.edit();
	}

	public void save(String key, String value) {
		writer.putString(key, value);
		writer.commit();
	}

	public String read(String key) {
		return data.getString(key, "");
	}
}
